package com.sh.data.engine.domain.workspace.manager.model.mapper;

import com.sh.data.engine.domain.workspace.manager.model.domain.StorageDetailDomain;
import com.sh.data.engine.domain.workspace.manager.model.param.StorageSaveParam;
import com.sh.data.engine.repository.dao.workspace.manager.entity.StorageEntity;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface StorageEntityMapper {

    StorageEntity saveParamToEntity(StorageSaveParam param);

    StorageEntity map(StorageDetailDomain storageDetail);

    List<StorageEntity> map(List<StorageDetailDomain> storageDetail);

}
